package com.logos.ruralrevitalization.converter;

import com.logos.ruralrevitalization.entity.AuthUser;
import com.logos.ruralrevitalization.entity.ProductOrder;
import com.logos.ruralrevitalization.req.ProductOrderReq;
import com.logos.ruralrevitalization.resp.ProductOrderResp;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ProductOrderConverter {

    ProductOrderConverter INSTANCE = Mappers.getMapper(ProductOrderConverter.class);

    ProductOrder convertReqToEntity(ProductOrderReq productOrderReq);

    ProductOrderResp convertEntityToResp(ProductOrder productOrder);
}